import requests from '@/utlis/requests'
//获取文章分类
export const getArticalClass = () => requests.get('/my/cate/list')

//增加文章分类
export const addArtical = ({ cate_name, cate_alias }) =>
  requests.post('/my/cate/add', { cate_name, cate_alias })

//修改文章内容
export const updateArtical = ({ id, cate_name, cate_alias }) =>
  requests.put('/my/cate/info', { id, cate_name, cate_alias })

//删除文章内容
export const deleteArtical = (id) =>
  requests.delete('/my/cate/del', { params: { id } })
